<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
	<meta content='True' name='HandheldFriendly'>
	<meta content='width=device-width, initial-scale=1.0' name='viewport'>
	<title>开心BA - 找到您想要的扒友，分享和交流，共度美好时光</title>
<jsp:include page="/public/header-meta.jsp"></jsp:include>
</head>
<body id="startbbs">
	<jsp:include page="/public/header.jsp"></jsp:include>
	<div id="wrap">
		<div class="container">
			<div class="row">
			<div class="col-md-8">
 				<div class="panel">
    			<div class="panel-heading">
    				<h3 class="panel-title">欢迎访问开心吧微社区</h3>
     			</div>
        		<div class="panel-body">
	       			<ul class="media-list" id="topic_list">
	       	 <s:iterator value="list">
				<li class="media topic-list">
    <div class="pull-right">
        <span class="badge badge-info topic-comment"><a href="reply!view?topic.tid=${tid }">${treplyCount }</a></span>
    </div>
     <a class="media-left" href="user!userDetails?uid=${bbsusers.uid}"><img class="medium_avatar" 
    	 src="${bbsusers.avatar}" alt="medium avatar"></a>
        <div class="media-body">
           <h2 class="media-heading topic-list-heading"><a href="reply!view?topic.tid=${tid }">${ttopic }</a></h2>
           <p class="text-muted">
            <span><a href="topic!listAll?section.sid=${bbssection.sid}">${ bbssection.sname}</a></span>&nbsp;•&nbsp;
             <span><a href="http://bbs.startbbs.com/user/profile/1">${bbsusers.uname }</a></span>&nbsp;•&nbsp;
             <span class="timeago" title="<fmt:formatDate value='${ttime }' pattern='yyyy-MM-dd HH:mm:ss'/>"></span>&nbsp;•&nbsp;
              <span>
              <s:if test="%{treplyCount>0}">最后回复来自 <a href="">s947359424</a></s:if>
              <s:else>暂无回复</s:else>
          	</span>
          	</p>	
        </div>
				</li>
			</s:iterator>
		</ul>
			<s:if test="list.size()!=0">
				<s:include value="/public/page.jsp">
					<s:param name="actionname"
						value="'topic!listAll?section.sid='+#request.section.sid"></s:param>
				</s:include>
			</s:if>
</div></div></div>

				<div class="col-md-4" id="Rightbar">
					<jsp:include page="/public/right_login.jsp"></jsp:include>
					<jsp:include page="/public/right_status.jsp"></jsp:include>
				</div>
			</div>
		</div>
	</div>
	<jsp:include page="/public/footer.jsp"></jsp:include>
	<!-- 日期格式化 -->
<script type="text/javascript"> 
	$(document).ready(function() {  
	  $("span.timeago").timeago();  
	});  
</script> 